package com.retail.shop.mapper;

import com.retail.core.common.CommonMapper;
import com.retail.core.entity.result.Result;
import com.retail.shop.entity.vo.RetailShopVo;
import com.retail.shop.entity.request.RetailShopRequest;
import com.retail.shop.entity.vo.ShopTypeStasticVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 商户信息 Mapper
* @author Administrator
*/
@Mapper
public interface RetailShopMapper extends CommonMapper<RetailShopRequest,RetailShopVo> {
    RetailShopVo getmodelByPoiIdAndSource(@Param("poiId") String poiId, @Param("shopSource") Integer shopSource);

    List<RetailShopVo> findOwnerShopByAdminId(@Param("adminId") String adminId);
    List<RetailShopVo> findOwnerShopByAdminIdAndId(@Param("adminId") String adminId);

    RetailShopVo getModelByPoiIdLimmit1(@Param("poiId") String poiId);

    List<RetailShopVo> myShopList(@Param("adminId")String adminId, @Param("search") String search);

    List<RetailShopVo> toBeBindShop();


    RetailShopVo findShopByShopId(@Param("shopId") Long shopId);


    RetailShopVo getOwnerShopByOwnerId(@Param("ownerId") Long ownerId);

    RetailShopVo getAllStatusOwnerModelByPoiId(@Param("poiId") String poiId);

    Integer updateCardType(RetailShopVo retailShopVo);

    Integer updateShopCard();

    List<RetailShopVo> getOfflineAllShopList(@Param("search") String search, @Param("city") String city);

    RetailShopVo getShopByOwnerId(@Param("ownerId") Long ownerId);

    List<ShopTypeStasticVo> getShopMonthStastics(@Param("adminId") Long adminId, @Param("startTimestamp") String startTimestamp, @Param("endTimestamp") String endTimestamp);

    RetailShopVo getShopByAccountId(@Param("accountId") String accountId);

    List<RetailShopVo> findAllShopByShopSource(@Param("shopSource") Integer shopSource);

    Integer allShops();

    Integer updatecityBelong(@Param("ids") Long[] ids, @Param("city") String city);
}
